xentrace: Fix bug in logic for bytes_to_wrap in trace buffer.
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 11 Feb 2008 09:45:36 +0000 (09:45 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 11 Feb 2008 09:45:36 +0000 (09:45 +0000)
commit4be9201e8c34104b15ac2eda6b8c3092d7baa191
treedc3e97c25029247e31bc43d42d48ad08013ec7b7
parentcb87e2c31a75778469165cd60a7044661b047780
xentrace: Fix bug in logic for bytes_to_wrap in trace buffer.
Admittedly, the bug could only be manifest with much larger trace
records than are currently allowed (or equivalently, much smaller
trace buffers), but the old code was harder to read, and thus hid the
logic bug well, too.

Signed-off-by: Michael A Fetterman <Michael.Fetterman@cl.cam.ac.uk>
xen/common/trace.c